<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    //179000612陈攀文
    //三角形
    for(var i=0;i<5;i++){
        for(var j=5;j>i;j--){
            document.writeln("&nbsp");
        }
        for(var k=0;k<1*i+1;k++){
            document.writeln("&nbsp");
            document.writeln("*");
        }
        document.writeln("</br>")
    }

    //平行四边形
   for(var h=1;h<=5;h++) {
       for (var m = 0; m <= 5 - h; m++) {
           document.writeln("&nbsp");
       }
       for (var s = 1; s <= 5; s++) {
           document.writeln("&nbsp");
           document.write("*");
       }
       document.writeln("</br>")
   }
    //菱形
    for(var z=0;z<3;z++){
        for(var x=4;x>z;x--){
            document.writeln("&nbsp");
        }
        for(var c=0;c<2*z+1;c++){
            document.writeln("*");
        }
        document.writeln("</br>");
    }

    for(var z=2;z>0;z--){
        for(var x=4;x>=z;x--){
            document.writeln("&nbsp");
        }
        for(var c=0;c<2*z-1;c++){
            document.writeln("*");
        }
        document.writeln("</br>")
    }

</script>
<body>

</body>
</html>